#!/usr/bin/env node
const config = require('../lib/config.json');
const path = require('path');
const process = require('process');
const rootPath = process.cwd();

const prjRootPath = path.resolve(rootPath, config.dir);
const prjTempPath = path.resolve(rootPath, config.dir, config.project.tempDir);
const modPath = path.resolve(rootPath, config.dir, 'node_modules/', config.frame.name);

const pkgJsonPath = path.resolve(rootPath, config.dir, 'package.json');
const modPkgJsonPath = path.resolve(rootPath, config.dir, 'node_modules/', config.frame.name, 'package.json');

const framePath = path.resolve(rootPath, config.dir, 'node_modules/', config.frame.name);
// const targetPath = path.resolve(rootPath, tempDir, '../');
// const projFolder = path.resolve(rootPath, tempDir);

module.exports = {
    rootPath: rootPath,
    prjRootPath: prjRootPath,
    prjTempPath: prjTempPath,
    modPath: modPath,
    pkgJsonPath: pkgJsonPath,
    modPkgJsonPath: modPkgJsonPath,
    framePath: framePath
};
